<template>
  <div>
    <button @click="subcount">-1</button>
    <button @click="subn(10)">-N</button>
    <button @click="asyncsub">-1 Async</button>
    {{show}}
  </div>
</template>

<script>
import { mapState, mapActions, mapGetters } from 'vuex'
import { mapMutations } from 'vuex'
export default {
  computed: {
    ...mapState(['count']),
    ...mapGetters(['show'])
  },

  methods: {
   ...mapMutations(['subcount',"subn"]),
   ...mapActions(['asyncsub'])
  }
}
</script>

<style></style>
